<?php
namespace app\index\Model;
use think\Model;

class TpConf extends Model
{
	//获取所有配置项信息
	public function getConfs(){
		$_configs=$this->field('ename,value')->select();
		//改为一维数组
		foreach ($_configs as $k => $v) {
			$configs[$v['ename']]=$v['value'];
			
		}
		return $configs;

	}

   
}
